<%@ page import="org.apache.struts.action.Action"%>
<%@page import="com.mbbmap.util.StringUtils"%>
<%@ page import = "java.io.*" %>
<%@ page import = "java.net.*" %>
<%@ page import = "java.text.*" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.util.Map" %>
<%@ page import = "java.util.HashMap" %>
<%@ page import="com.mbbmap.app.manager.*" %>
<%@ page import="com.mbbmap.app.EbppKeys" %>
<%@ page import="com.mbbmap.util.*" %>
<%@ page import = "com.mbbmap.security.dao.*" %>
<%@ page import = "com.mbbmap.app.home.*" %>

<%
String msg = StringUtils.NullSafe((String) request.getAttribute("msg"));
String msg_id = StringUtils.NullSafe((String) request.getAttribute("msg_id"));

String userid = StringUtils.NullSafe((String) request.getAttribute("userid"));
String pass1 = StringUtils.NullSafe((String) request.getAttribute("pass1"));
String pass2 = StringUtils.NullSafe((String) request.getAttribute("pass2"));

boolean showParam = false;
String msgColor = "red";

if (msg_id.equalsIgnoreCase("MSG001") || msg_id.equalsIgnoreCase("MSG002"))
	showParam = true;

if (msg_id.equalsIgnoreCase("MSG999"))
	msgColor = "green";

ArrayList secGroupAccessList = (ArrayList) session.getAttribute(Constants.LOGON_ACCESS_LIST);
SecUserDao oSecUserDao = (SecUserDao) session.getAttribute(Constants.LOGGED_USER);
String sUserName = oSecUserDao.getUserName();
String lastLogonDateTime = (String) session.getAttribute(Constants.LAST_LOGON_DATETIME);

String selected = "sec007";
int iSec001 = 0;
int iSec002 = 0;
int iSec003 = 0;
int iSec004 = 0;
int iSec005 = 0;
int iSec006 = 0;
int iSec007 = 0;
int iSec008 = 0;

for(int i=0;i<secGroupAccessList.size();i++){
	SecAccessDao secaccessDao = (SecAccessDao)secGroupAccessList.get(i);
	String strModuleCode  = secaccessDao.getModuleCode();
	if(strModuleCode.equals("SEC001"))
		iSec001 = 1;
	if(strModuleCode.equals("SEC002"))
		iSec002 = 1;
	if(strModuleCode.equals("SEC003"))
		iSec003 = 1;
	if(strModuleCode.equals("SEC004"))
		iSec004 = 1;
	if(strModuleCode.equals("SEC005"))
		iSec005 = 1;
	if(strModuleCode.equals("SEC006"))
		iSec006 = 1;
	if(strModuleCode.equals("SEC007"))
		iSec007 = 1;
	if(strModuleCode.equals("SEC008"))
		iSec008 = 1;
}

String strAllowIdPw			= (String) session.getAttribute(ParamHome.SEC_ALLOW_SAME_USER_ID_PW);
String totalHistPwdStored 	= (String) session.getAttribute(ParamHome.TECH_PARAM_TOTAL_PASSWORD_HIST);
String strPwExpiry		 	= (String) session.getAttribute(ParamHome.SEC_PW_EXPIRY_DAY);
String strBadPwAttempt		= (String) session.getAttribute(ParamHome.SEC_BAD_PW_ATTEMPTS);
String strChgPwFirLogon		= (String) session.getAttribute(ParamHome.SEC_CHG_PW_FIR_LOGON);
String strUserPwRegex	 	= (String) session.getAttribute(ParamHome.TECH_PARAM_PASSWORD_REG_EXPR);
String strUIdMinLen			= (String) session.getAttribute(ParamHome.SEC_UID_MIN_LEN);
String strUIdMaxLen 		= (String) session.getAttribute(ParamHome.SEC_UID_MAX_LEN);
String strUIdPwMinLen	 	= (String) session.getAttribute(ParamHome.SEC_UserPwdMinLen);
String strUIdPwMaxLen		= (String) session.getAttribute(ParamHome.SEC_UserPwdMaxLen);
String strLogOutTime		= (String) session.getAttribute(ParamHome.SEC_LOGOUT_TIME);
String strUserDorDays	 	= (String) session.getAttribute(ParamHome.SEC_USER_DOR_DAYS);
String strPwReset			= (String) session.getAttribute(ParamHome.TECH_PARAM_PASSWORD_RESET_FLAG);
String strMaxWebCon 		= (String) session.getAttribute(ParamHome.SEC_MAX_WEB_CON);
String strUserInac 			= (String) session.getAttribute(ParamHome.SEC_USER_INACTIVE);
String strDayLimit	 		= (String) session.getAttribute(ParamHome.SEC_DAY_LIMIT);
String strDisableTimestampFr	 		= (String) session.getAttribute(ParamHome.SEC_DISABLE_TIMESTAMP_FR);
String strDisableTimestampTo	 		= (String) session.getAttribute(ParamHome.SEC_DISABLE_TIMESTAMP_TO);
%>

<html>
<head>
<link rel="stylesheet" href="resource/mbb_sec_global.css" type="text/css" />
<link href="resource/style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">
	    window.history.forward();
	    function noBack() { window.history.forward(); }
	</script>
<style type="text/css"></style></head>


<SCRIPT LANGUAGE="JavaScript1.2">

	// Page Actions here...
	
	//onSubmit of frmPwdRegex
	function UpdatePwdRegex(){ //regular expression
		
		var param_value = document.frmUserPwdRegex.param_value.value;
		var param_name = "userPwdRegex";
		if(param_value==null || param_value==""){
			alert("Please Enter a new Regular Expression");
			return false;
		}

		document.frmUserPwdRegex.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmUserPwdRegex.submit();
	}
	
	function UpdatePwdHist(){ //history config
		var number =/[^0-9]/;
		var param_value = document.frmPwdHist.param_value.value;
		var param_name = "T_PWD_HIST";
		if(param_value==null || param_value==""){
			alert("Please enter a value for Password History");
			return false;
		}
		else if(param_value.match(number)){
			alert("Password History value must be number");
			return false;
		}

		document.frmPwdHist.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmPwdHist.submit();
	}
	
	 //password reset flag
	function UpdatePwdResetFlag(){
		
		var param_value = document.frmPwdResetFlag.param_value.value;
		var param_name = "pwdResetFlag";
		if(param_value==null || param_value==""){
			alert("Please enter a value for Reset Flag");
			return false;
		}

		document.frmPwdResetFlag.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmPwdResetFlag.submit();
	}
	//allow same id and pw
	function UpdateAllowSameIdPw(){ 
		
		var param_value = document.frmAllowSameIdPw.param_value.value;
		var param_name = "allowSameUserIdPwd";
		if(param_value==null || param_value==""){
			alert("Please enter a value for Reset Flag");
			return false;
		}
	
		document.frmAllowSameIdPw.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmAllowSameIdPw.submit();
	}
	//days for password expiry
	function UpdatePwdExpiryDays(){ 
		var number =/[^0-9]/;
		var param_value = document.frmPwdExpiryDays.param_value.value;
		var param_name = "pwdExpiryDays";
		if(param_value==null || param_value==""){
			alert("Please enter a value for Password Expiry Days");
			return false;
		}
		else if(param_value.match(number)){
			alert("Password Expiry Day value must be number");
			return false;
		}
		document.frmPwdExpiryDays.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmPwdExpiryDays.submit();
	}
	//bad password attempt
	function UpdateBadPwAttempt(){ 
		var number =/[^0-9]/;
		var param_value = document.frmBadPwAttempt.param_value.value;
		var param_name = "badPwdAttempts";
		if(param_value==null || param_value==""){
			alert("Please enter a value for bad password attempts ");
			return false;
		}
		else if(param_value.match(number)){
			alert("Bad Password Attempt value must be number");
			return false;
		}
		document.frmBadPwAttempt.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmBadPwAttempt.submit();
	}
	//first time login change password
	function UpdatePwFirstLogin(){ 
		
		var param_value = document.frmPwFirstLogin.param_value.value;
		var param_name = "changePwdFirstLogon";
		if(param_value==null || param_value==""){
			alert("Please enter a value for first time change password");
			return false;
		}

		document.frmPwFirstLogin.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmPwFirstLogin.submit();
	}
	//user id minimum length
	function UpdateUserIdMinLen(){ 
		var number =/[^0-9]/;
		var param_value = document.frmUserIdMinLen.param_value.value;
		var param_name = "userLoginIdMinLen";
		if(param_value==null || param_value==""){
			alert("Please enter a minimum length for user ID ");
			return false;
		}
		else if(param_value.match(number)){
			alert("ID minimum length value must be number");
			return false;
		}
		document.frmUserIdMinLen.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmUserIdMinLen.submit();
	}
	//user id maximum length
	function UpdateUserIdMaxLen(){ 
		var number =/[^0-9]/;
		var param_value = document.frmUserIdMaxLen.param_value.value;
		var param_name = "userLoginIdMaxLen";
		if(param_value==null || param_value==""){
			alert("Please enter a maximum length for user ID ");
			return false;
		}
		else if(param_value.match(number)){
			alert("ID maximum length value must be number");
			return false;
		}
		document.frmUserIdMaxLen.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmUserIdMaxLen.submit();
	}
	//user password minimum length
	function UpdateUserPwdMinLen(){ 
		var number =/[^0-9]/;
		var param_value = document.frmUserPwdMinLen.param_value.value;
		var param_name = "userPwdMinLen";
		if(param_value==null || param_value==""){
			alert("Please enter a maximum length for user ID ");
			return false;
		}
		else if(param_value.match(number)){
			alert("Password minimum length value must be number");
			return false;
		}
		document.frmUserPwdMinLen.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmUserPwdMinLen.submit();
	}
	//user password maximum length
	function UpdateUserPwdMaxLen(){ 
		var number =/[^0-9]/;
		var param_value = document.frmUserPwdMaxLen.param_value.value;
		var param_name = "userPwdMaxLen";
		if(param_value==null || param_value==""){
			alert("Please enter a maximum length for user ID ");
			return false;
		}	
		else if(param_value.match(number)){
			alert("Password maximum length value must be number");
			return false;
		}
		document.frmUserPwdMaxLen.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmUserPwdMaxLen.submit();
	}
	//improper logout timeout minute
	function UpdateImpLoutToutMin(){ 
		var number =/[^0-9]/;
		var param_value = document.frmImpLoutToutMin.param_value.value;
		var param_name = "improperLogoutTimeOutMin";
		if(param_value==null || param_value==""){
			alert("Please enter a value for improper logout timeout minute ");
			return false;
		}	
		else if(param_value.match(number)){
			alert("Timeout value must be number");
			return false;
		}
		document.frmImpLoutToutMin.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmImpLoutToutMin.submit();
	}
	//user dormant days
	function UpdateUserDormDays(){ 
		var number =/[^0-9]/;
		var param_value = document.frmUserDormDays.param_value.value;
		var param_name = "userDormantDays";
		if(param_value==null || param_value==""){
			alert("Please enter a value for user dormant days ");
			return false;
		}	
		else if(param_value.match(number)){
			alert("Dormant day value must be number");
			return false;
		}
		document.frmUserDormDays.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmUserDormDays.submit();
	}	
	//maximun web connection
	function UpdateMaxWebConn(){ 
		var number =/[^0-9]/;
		var param_value = document.frmMaxWebConn.param_value.value;
		var param_name = "maxwebconn";
		if(param_value==null || param_value==""){
			alert("Please enter a value for maximun web connection");
			return false;
		}	
		else if(param_value.match(number)){
			alert("Maximum connection value must be number");
			return false;
		}
		document.frmMaxWebConn.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmMaxWebConn.submit();
	}	
	//days of user inactive
	function UpdateUserInaDaysRep(){ 
		var number =/[^0-9]/;
		var param_value = document.frmUserInaDaysRep.param_value.value;
		var param_name = "userInactiveDaysReport";
		if(param_value==null || param_value==""){
			alert("Please enter a value for user inactive days");
			return false;
		}	
		else if(param_value.match(number)){
			alert("User inactive days value must be number");
			return false;
		}
		document.frmUserInaDaysRep.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmUserInaDaysRep.submit();
	}	
	 //daily limit
	function UpdateDailyTxnLimit(){
		var number =/[^0-9]/;
		var param_value = document.frmDailyTxnLimit.param_value.value;
		var param_name = "dailytxnlimit";
		if(param_value==null || param_value==""){
			alert("Please enter a value for daily limit");
			return false;
		}	
		else if(param_value.match(number)){
			alert("Daily limit value must be number");
			return false;
		}
		document.DailyTxnLimit.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.DailyTxnLimit.submit();
	}	

	 //UpdateRestritDateFr
	function UpdateRestritDateFr(){
		var number =/[^0-9]/;
		var param_value = document.frmRestrictDtFr.param_value.value;
		var param_name = "disabletimestampfr";
		if(param_value==null || param_value==""){
			alert("Please enter a value for Date Time From");
			return false;
		}	
		else if(param_value.match(number)){
			alert("Date Time From value must be number");
			return false;
		}
		document.frmRestrictDtFr.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmRestrictDtFr.submit();
	}	
	 //UpdateRestritDateTo
	function UpdateRestritDateTo(){
		var number =/[^0-9]/;
		var param_value = document.frmRestrictDtTo.param_value.value;
		var param_name = "disabletimestampto";
		if(param_value==null || param_value==""){
			alert("Please enter a value for Restrict Date Time To");
			return false;
		}	
		else if(param_value.match(number)){
			alert("Restrict Date Time To value must be number");
			return false;
		}
		document.frmRestrictDtTo.action='<%=response.encodeURL("UpdateSecParameter.do?dispatch=updParameter")%>';
		document.frmRestrictDtTo.submit();
	}	
	
</SCRIPT>
</head>


<%
	//on jsp load
%>

<body class="home" onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">

	<a name="top"></a>
	
<!-- Header -->
<%@ include file="/jsp/common/Header.jsp" %>	
<!-- End Header -->

<div id="bgWrapper">
		<div id="container">
		
					<div id="titleBar">
						<ul class="topBar">
							<li class="goBackBt"><a href="<%=request.getContextPath()%>/ShowSecurityHome.do?dispatch=init"></a></li>

							<li>
							  <h1>Parameter Setup</h1></li>
						</ul>
					</div>
		
					<div id="fullcontent">
		
						<!-- Security Navigation -->
						<%@ include file="/jsp/security/SecurityNavigation.jsp" %>
						<!-- End SecurityNavigation -->
			
			
						<div id="contentRightIn">
									
							<div id="moduleContainer">
							
							
									<!--  Module Title -->
									<table align="center" width=100% border="0" rules="cols" class="tblDetails">
										<thead>
											<tr>
												<th colspan="4">
													<h4>Password Validation</h4>
												</th>
											</tr>
										</thead>
											
										<tr class="even">
											<td colspan="2" align="center" style="text-align:center !important;">
												Setup Password Rules, Total of Password History, Password Reset Flag.
												<p style="font-weight:bold;color: <%=msgColor%> !important;"><%=msg%></p>
											</td>
										</tr>
									</table>

									
									<!-- Data Table -->							
									
									<!-- Password Regular Expression -->	
									<form name="frmUserPwdRegex" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit Password Regular Expression</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Password Regular Expession Rule Below and click "Save" to proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Password Regular Expression Rule: 
													<input id="param_value" name="param_value" type="text" value="<%=strUserPwRegex %>" /> 
													<input type="hidden" value="userPwdRegex" name="param_name" /> 
													<input type="submit" value="Save" onClick="UpdatePwdRegex()" />								
												</div>
												</td>
											
											</tr>
											
											<tr class="even">
												<td>Note: For guidance, please refer this URL: <a href="http://www.roblocher.com/technotes/regexp.aspx" target="_blank">http://www.roblocher.com/technotes/regexp.aspx</a></td>
											</tr>	
										</table>
									</form>
									
									<!-- Pasword History Configuration -->	
									<form name="frmPwdHist" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit Total of Pasword History Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of Password History Stored Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of Password History Stored: 
												<input id="param_value" name="param_value" type="text" value="<%=totalHistPwdStored %>"/> 
												<input type="hidden" value="T_PWD_HIST" name="param_name" /> 
												<input type="submit" onclick="UpdatePwdHist()" value="Save" /></td>
											</tr>
												
										</table>
									</form>

									
									<!-- Pasword Reset Flag -->	
									<form name="frmPwdResetFlag" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit Password Reset Flag Coonfiguration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Select The Password Reset Flag Below and click &quot;Save&quot; to proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Select Password Reset Flag:
												
												<select name="param_value"> 
												  	<option value="Y"> Yes</option>
												  	<option value="N"> No</option>
												</select>
												
												<input type="hidden" value="pwdResetFlag" name="param_name" />
												
												 <input type="submit" onclick="UpdatePwdResetFlag()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- Allow same user ID PW -->	
									<form name="frmAllowSameIdPw" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Allow same ID and Password Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Select The Same ID and Password Flag Below and click &quot;Save&quot; to proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Select Same ID and Password Flag:
												
												<select name="param_value"> 
												  	<option value="Y"> Yes</option>
												  	<option value="N"> No</option>
												</select>
												
												<input type="hidden" value="pwdResetFlag" name="param_name" />
												
												<input type="submit" onclick="UpdateAllowSameIdPw()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- Password Expiry Days Configuration -->	
									<form name="frmPwdExpiryDays" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit Expiry Days for Password Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Expiry Days of Password Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of Days for Password Expiration: 
												<input id="param_value" name="param_value" type="text" value="<%=strPwExpiry %>"/> 
												<input type="hidden" value="pwdExpiryDays" name="param_name" /> 
												<input type="submit" onclick="UpdatePwdExpiryDays()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- Bad Password Attempts Configuration -->	
									<form name="frmBadPwAttempt" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit Bad Password Attempt Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of Bad Password Attempt Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of Bad Password Attempt :
												 <input id="param_value" name="param_value" type="text" value="<%=strBadPwAttempt %>" /> 
												<input type="hidden" value="badPwdAttempts" name="param_name" /> 
												<input type="submit" onclick="UpdateBadPwAttempt()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									<!-- First login change PW -->	
									<form name="frmPwFirstLogin" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Change password for first time login</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Select First Login Change Password Flag Below and click &quot;Save&quot; to proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Select First Login Change Password Flag:
												
												<select name="param_value"> 
												  	<option value="Y"> Yes</option>
												  	<option value="N"> No</option>
												</select>
												
												<input type="hidden" value="pwdResetFlag" name="param_name" />
												
												 <input type="submit" onclick="UpdatePwFirstLogin()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- User Login ID Minimum Length -->	
									<form name="frmUserIdMinLen" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit User Login ID Minimum Length Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of User Login ID Minimum Length Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of User Login ID Minimum Length : 
												<input id="param_value" name="param_value" type="text" value="<%=strUIdMinLen %>"/> 
												<input type="hidden" value="userLoginIdMinLen" name="param_name" /> 
												<input type="submit" onclick="UpdateUserIdMinLen()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- User Login ID Maximum Length -->	
									<form name="frmUserIdMaxLen" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit User Login ID Maximum Length Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of User Login ID Maximum Length Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of User Login ID Maximum Length : 
												<input id="param_value" name="param_value" type="text" value="<%=strUIdMaxLen %>"/> 
												<input type="hidden" value="userLoginIdMaxLen" name="param_name" /> 
												<input type="submit" onclick="UpdateUserIdMaxLen()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- User Login PW Minimum Length -->	
									<form name="frmUserPwdMinLen" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit User Login Password Minimum Length Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of User Login Password Minimum Length Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of User Login Password Minimum Length :
												 <input id="param_value" name="param_value" type="text" value="<%=strUIdPwMinLen %>" /> 
												<input type="hidden" value="userPwdMinLen" name="param_name" /> 
												<input type="submit" onclick="UpdateUserPwdMinLen()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- User Login PW Maximum Length -->	
									<form name="frmUserPwdMaxLen" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit User Login Password Maximum Length Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of User Login Password Maximum Length Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of User Login Password Maximum Length : 
												<input id="param_value" name="param_value" type="text" value="<%=strUIdPwMaxLen %>"/> 
												<input type="hidden" value="userPwdMaxLen" name="param_name" /> 
												<input type="submit" onclick="UpdateUserPwdMaxLen()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- Improper Logout TimeOut Minute -->	
									<form name="frmImpLoutToutMin" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit Improper Logout TimeOut Minute Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of Improper Logout TimeOut Minute Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of Improper Logout TimeOut Minute :
												 <input id="param_value" name="param_value" type="text" value="<%=strLogOutTime %>"/> 
												<input type="hidden" value="improperLogoutTimeOutMin" name="param_name" /> 
												<input type="submit" onclick="UpdateImpLoutToutMin()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- User Dormant Days  -->	
									<form name="frmUserDormDays" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit User Dormant Days Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of User Dormant Days Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of User Dormant Days :
												 <input id="param_value" name="param_value" type="text" value="<%=strUserDorDays %>"/> 
												<input type="hidden" value="userDormantDays" name="param_name" /> 
												<input type="submit" onclick="UpdateUserDormDays()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- Max web connection  -->	
									<form name="frmMaxWebConn" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit Maximum Web Connection Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of Maximum Web Connection Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of Maximum Web Connection : 
												<input id="param_value" name="param_value" type="text" value="<%=strMaxWebCon %>"/> 
												<input type="hidden" value="maxwebconn" name="param_name" /> 
												<input type="submit" onclick="UpdateMaxWebConn()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- User Inactive Days Report  -->	
									<form name="frmUserInaDaysRep" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Add/Edit User Inactive Days Report Configuration</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Total of User Inactive Days Report Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter Total of User Inactive Days Report :
												 <input id="param_value" name="param_value" type="text" value="<%=strUserInac %>"/> 
												<input type="hidden" value="userInactiveDaysReport" name="param_name" /> 
												<input type="submit" onclick="UpdateUserInaDaysRep()" value="Save" /></td>
											</tr>
												
										</table>
									</form>
									
									<!-- Daily Txn Limit -->	
									<form name="frmDailyTxnLimit" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
										
											<tr class="odd">
												<td>
												 <input id="param_value" name="param_value" type="hidden" value="0"/> 
												<input type="hidden" value="dailytxnlimit" name="param_name" /> 
												</td>
											</tr>
												
										</table>
									</form>

									<!-- Date Time Restring -->	
									<form name="frmRestrictDtFr" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Disable Date & Time Setting</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Disabled Date & Time From Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter The Disabled Date & Time From :
												 <input id="param_value" name="param_value" type="text" value="<%=strDisableTimestampFr %>"/> 
												<input type="hidden" value="disabletimestampfr" name="param_name" /> 
												<input type="submit" onclick="UpdateRestritDateFr()" value="Save" /></td>
											</tr>
												
										</table>
									</form>									

									<!-- Date Time Restring -->	
									<form name="frmRestrictDtTo" action="" method="post">
										<input type="hidden" name="<%= Constants.TOKEN_KEY %>" value="<%= session.getAttribute(Action.TRANSACTION_TOKEN_KEY) %>" >
										<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Disable Date & Time Setting</h3>
														</div>
													</th>
											</thead>
										
											<tr class="headerD">
												<td>Enter The Disabled Date & Time To Below and click "Save" to Proceed</td>
											</tr>
											
											<tr class="odd">
												<td>Enter The Disabled Date & Time From :
												 <input id="param_value" name="param_value" type="text" value="<%=strDisableTimestampTo %>"/> 
												<input type="hidden" value="disabletimestampto" name="param_name" /> 
												<input type="submit" onclick="UpdateRestritDateTo()" value="Save" /></td>
											</tr>
												
										</table>
									</form>									
									
									<!--  Other Configuration -->
										
									<table align="center" class="tbldetails" width=100% border="0" rules="cols">
											<thead class="th1">
												<tr>
													<th colspan="4">
														<div class="sectionTableTitle">
														<h3>Other Configuration</h3>
														</div>
													</th>
											</thead>
										
										<tr class="headerD">
											<td width="40%" class="center_note">Configuration</td>
											<td width="60%" class="center_note">Description</td>
										</tr>
											
										<tr class="odd">
												<td>Session Time</td>
												<td>Edit the figure of session time at/app/deploy/mbbcsr/WEB-INF/web.xml</td>
										</tr>																					
												
									</table>
									
									
									
							
							</div> <!--  moduleContainer END -->
						</div>
		
					<!-- Footer -->
					<%@ include file="/jsp/common/Footer.jsp" %>	
					<!-- End Footer -->
					</div>




</body>
</html>